查询 Order 对象列表

返回之前创建过 order对象的一个列表。列表是按创建时间进行排序,总是将最新的 order 对象显示在最前。

请求参数描述
app required string对应 app 对象的 id,查看 如何获取App ID
uid optional stringuser 对象的 id
receipt_app optional string收款方 app 对象的 id。订单使用收款方应用的渠道参数进行支付。
service_app optional string服务方 app 对象的 id。表示承接该交易服务的应用,由服务方和平台确定订单的层级链都能查询到该 order 对象。
paid optional boolean是否付款。
refunded optional boolean是否存在退款信息,无论退款是否成功。
canceled optional intorder 对象的 status 是否为 canceled,"0":未取消,"1":已取消。
page optional int页码,默认值为 "1",取值范围(1~100000000)。
per_page optional int每页数量,默认值为 "10",取值范围(1~20)。
created[gt] optional timestamp大于 order 对象的创建时间,用 Unix 时间戳表示。
created[gte] optional timestamp大于或等于 order 对象的创建时间,用 Unix 时间戳表示。
created[lt] optional timestamp小于 order 对象的创建时间,用 Unix 时间戳表示。
created[lte] optional timestamp小于或等于 order 对象的创建时间,用 Unix 时间戳表示。

返回

返回一个 order 对象列表,或者返回一个错误,详见 错误

定义

GET https://api.pingxx.com/v1/orders
待补充
待补充
待补充
待补充
待补充
待补充
待补充

请求示例

curl https://api.pingxx.com/v1/orders \
-H "Pingplusplus-Request-Timestamp: 1475029155" \
-H "Pingplusplus-Signature: SIGNATURE" \
-u sk_test_ibbTe5jLGCi5rzfH4OqPW9KC:
待补充
待补充
待补充
待补充
待补充
待补充
待补充

返回示例

{
    "object": "list",
    "url": "/v1/orders",
    "has_more": false,
    "data": [
        {
            "id": "2001708140000017551",
            "object": "order",
            "created": 1502695388,
            "livemode": false,
            "paid": false,
            "refunded": false,
            "status": "canceled",
            "app": "app_1Gqj58ynP0mHeX1q",
            "uid": "user_007",
            "available_balance": 0,
            "merchant_order_no": "2017081400000006",
            "amount": 1000,
            "actual_amount": 800,
            "amount_refunded": 0,
            "amount_paid": 0,
            "coupon_amount": 200,
            "currency": "cny",
            "subject": "Your Subject",
            "body": "Your Body",
            "client_ip": "127.0.0.1",
            "time_paid": null,
            "time_expire": 1502781019,
            "coupon": "300317081415225500002001",
            "description": null,
            "metadata": null,
            "charge_essentials": {},
            "receipt_app": "app_1Gqj58ynP0mHeX1q",
            "service_app": "app_1Gqj58ynP0mHeX1q",
            "available_methods": [],
            "charges": {
                "object": "list",
                "url": "/v1/charges",
                "has_more": false,
                "data": [
                    {
                        "id": "ch_1Kyn50DyjXbHbvnv5SGK4qDK",
                        "object": "charge",
                        "created": 1502695440,
                        "livemode": false,
                        "paid": false,
                        "refunded": false,
                        "reversed": false,
                        "app": "app_1Gqj58ynP0mHeX1q",
                        "channel": "alipay_qr",
                        "order_no": "2017081400000006",
                        "client_ip": "127.0.0.1",
                        "amount": 800,
                        "amount_settle": 800,
                        "currency": "cny",
                        "subject": "Your Subject",
                        "body": "Your Body",
                        "extra": {},
                        "time_paid": null,
                        "time_expire": 1502781019,
                        "time_settle": null,
                        "transaction_no": null,
                        "refunds": null,
                        "amount_refunded": 0,
                        "failure_code": null,
                        "failure_msg": null,
                        "metadata": {},
                        "credential": {
                            "object": "credential",
                            "alipay_qr": "http://sissi.pingxx.com/mock.php?ch_id=ch_1Kyn50DyjXbHbvnv5SGK4qDK&channel=alipay_qr"
                        },
                        "description": null
                    }
                ]
            }
        },
        {
            "id": "2001708140000016421",
            "object": "order",
            "created": 1502695222,
            "livemode": false,
            "paid": false,
            "refunded": false,
            "status": 0,
            "app": "app_1Gqj58ynP0mHeX1q",
            "uid": "user_007",
            "available_balance": 0,
            "merchant_order_no": "20170814000000006",
            "amount": 1000,
            "actual_amount": 990,
            "amount_refunded": 0,
            "amount_paid": 0,
            "coupon_amount": 10,
            "currency": "cny",
            "subject": "Your Subject",
            "body": "Your Body",
            "client_ip": "127.0.0.1",
            "time_paid": null,
            "time_expire": 1502781019,
            "coupon": "300317081415200100001501",
            "description": null,
            "metadata": null,
            "charge_essentials": {},
            "receipt_app": "app_1Gqj58ynP0mHeX1q",
            "service_app": "app_1Gqj58ynP0mHeX1q",
            "available_methods": [],
            "charges": {
                "object": "list",
                "url": "/v1/charges",
                "has_more": false,
                "data": []
            }
        },
        {
            "id": "2001708140000015581",
            "object": "order",
            "created": 1502695142,
            "livemode": false,
            "paid": false,
            "refunded": false,
            "status": 0,
            "app": "app_1Gqj58ynP0mHeX1q",
            "uid": "user_007",
            "available_balance": 0,
            "merchant_order_no": "20170814000000001",
            "amount": 1000,
            "actual_amount": 990,
            "amount_refunded": 0,
            "amount_paid": 0,
            "coupon_amount": 10,
            "currency": "cny",
            "subject": "Your Subject",
            "body": "Your Body",
            "client_ip": "127.0.0.1",
            "time_paid": null,
            "time_expire": 1502781019,
            "coupon": "300317081415184800001001",
            "description": null,
            "metadata": null,
            "charge_essentials": {},
            "receipt_app": "app_1Gqj58ynP0mHeX1q",
            "service_app": "app_1Gqj58ynP0mHeX1q",
            "available_methods": [],
            "charges": {
                "object": "list",
                "url": "/v1/charges",
                "has_more": false,
                "data": []
            }
        },
        {...},
        {...}
    ]
}